//
//  HotWordTableViewCell.m
//  CoJellyCartoon
//
//  Created by kingbw on 16/3/31.
//  Copyright © 2016年 CJG. All rights reserved.
//

#import "HotWordTableViewCell.h"

@implementation HotWordTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.numberLabel = [[CJBaseLabel alloc] initWithFrame:CGRectZero];
        [self addSubview:self.numberLabel];
        self.numberLabel.textColor = [UIColor colorWithRed:arc4random()%255 / 255.0 green:arc4random()%255 / 255.0 blue:arc4random()%255 / 255.0 alpha:1];
        
        self.title = [[CJBaseLabel alloc] initWithFrame:CGRectZero];
        [self addSubview:self.title];
        self.title.textColor = [UIColor colorWithRed:arc4random()%255 / 255.0 green:arc4random()%255 / 255.0 blue:arc4random()%255 / 255.0 alpha:1];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.numberLabel.frame = CGRectMake(ScreenWidth * 5 / 414, 0, ScreenWidth * 40 / 414, self.frame.size.height);
    self.title.frame = CGRectMake(ScreenWidth * 42 / 414, 0, ScreenWidth * 200 / 414, self.frame.size.height);
}

- (void)setFoundModel:(CJFoundMainModel *)foundModel {
    _foundModel = foundModel;
    self.title.text = foundModel.keyword;
}


@end
